const express=require('express')

const app1=express()
app1.use(express.static(__dirname))
app1.listen(90,()=>{
    console.log('express server running at http://127.0.0.1:90')
})

const app2=express()
app2.get('/',(req,res)=>{
    const funcName=req.query.callback
    const data ={name:'zs',age:22}
    const scriptStr=`${funcName}(${(JSON.stringify(data))})`
    // res.setHeader('Access-Control-Allow-Origin','*')
    res.send(scriptStr)
})
app2.listen(91,()=>{
    console.log('express server running at http://127.0.0.1:91')
})